<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>我的购物车</title>
    <style>
        #cart{
            border:solid 1px #ccc;
            background: #eee;
            text-align: center;
            padding: 20px 0;
            width: 200px;
            margin: 0 auto;
            position: relative;
        }
        #cart>span{
            width:20px;
            height: 20px;
            background: red;
            color: white;
            text-align: center;
            position: absolute;
            top: 5px;
            border-radius: 10px 10px 10px 0;
        }
    </style>
</head>
<body>
    <div id="cart">
        我的购物车
        <span>1</span>
    </div>
</body>
</html>